package Day22.字符串;


public class StringDemo1 {
    public static void main(String[] args) {
        String str = "abc";
        String str1 = "abc";
        str = str + "hello";

        //字符串连接方法，等同于"+"连接
        str = str.concat(" welcome");

        System.out.println(str);
        System.out.println(str1);
        new String("abc");//调用String类的构造方法


        //int num = 1000;//JVM中num的是int类型吗？byte  short
    }
}
